<!-- 我的详细资料页面:  ty -->

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">            <!-- 引入thymeleaf约束 -->
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>我的详情</title>
    
    <link type="text/css" rel="stylesheet" href="css/coach-approve.css"/>
   
</head>
<body class="body_color">
<div id="child_header">
    <div class="goback"><a href="/chat/personcenter"><i></i></a></div>
    <div class="current_location"><span>认证页面</span></div>
</div>
<div class="user_info">
    <ul>
    <div th:if="${approveState} eq '0'">
        <li><span>昵称</span><input id="nickname" class="info_input" type="text"></li>
        <li><span>姓名</span><input id="name" class="info_input" type="text"></li>
        <li><span>联系电话</span><input id="poho" class="info_input" type="text"></li>
		<li><span>课时费</span><input id="cost" class="info_input" type="text"></li>
		<li><span>期望薪资</span><input id="salary" class="info_input" type="text"></li>
        <li><span>空闲时间： &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp</span>
			<input  name="public"  type="radio" value="0">9:00-11:00
        	<input  name="public" type="radio" value="1">13:00-17:00
			<input  name="public" type="radio" value="2" checked="checked">19:00-22:00
			<input  name="public" type="radio" value="3" checked="checked">所有</li>
		<li>
			
				<div id="but" onclick="tosubmit()">
					提交认证
				</div>
		</div>
			<div th:if="${approveState} eq '2'">
				<div id="but2">
					认证已提交...
				</div>
			</div>
			<div th:if="${approveState} eq '1'">
				<div id="but2">
					认证成功
				</div>
			</div>
		</li>
    
    </ul>
    
    <script src="js/jquery.min.js"></script>
	<script type="text/javascript">
    function tosubmit(){
    	$.ajax({
    		url:"/chat/upApprove",
    		success:function(result){
    			alert(result.reslutApprove);
				window.location.href = "/chat/coachApprove";
    		}    			
    	})	    	
    }
    </script>
</div>
</body>
</html>